package com.zyh.domain;

public class Cat {
    public String name;
    public String address;
    public double height;
    public int age;

    public Cat(){
    }

    public Cat(String name){
        this.name=name;
    }

    public Cat(String name,String address){
        this.name=name;
        this.address=address;
    }

    public Cat(String name,String address,double height){
        this.name=name;
        this.address=address;
        this.height=height;
    }

    public Cat(String name,String address,double height,int age){
        this.name=name;
        this.address=address;
        this.height=height;
        this.age=age;
    }

    public void eat(){
        System.out.println("猫吃鱼");
    }
    public void catchMouse(){
        System.out.println(name+"猫抓老鼠");
    }
    public void show(){
        System.out.println(name+"--"+address+"--"+height+"--"+age);
    }
}
